﻿@model Core.PageInterfaces.ISitePage

@{
    ViewBag.Title = Model.Title;
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@*<h2>@Model.Title</h2>*@




@Html.Raw(Model.ContentBlock.SingleOrDefault(x => x.ContentBlockDefinition.InternalName.Equals("MainContent")).HTMLContent)

<div class="new_products">

    @foreach (var item in ViewBag.Categories)
    { 
        <div class="new_prod_box">
            @Html.RouteLink((string)item.Name, "Store/Category", new { controller="Store", action="Category", id=((int)item.Id).ToString()} )           
            <div class="new_prod_bg">
               @*   <span class="new_icon">
                  <img src="images/new_icon.gif" alt="" title="" />
                </span>*@

             
                <a href="@Url.RouteUrl("Store/Category", new { controller="Store", action="Category", id=item.Id})"> 
                    <img src="@item.SmallImgLink" alt="@item.Name" title="@item.Name" class="thumb" border="0" />

                </a>
              
            </div>
        </div>  
        
    }

</div>
@section SideContent
{
    @Html.Raw(Model.ContentBlock.SingleOrDefault(x => x.ContentBlockDefinition.InternalName.Equals("SideContent")).HTMLContent)
}